package MyLinkedList;

public class Test {
    public static void main(String[] args) {
        MyLinkedList ml=new MyLinkedList();
        ml.addFirst(1);
        ml.addFirst(2);
        ml.addFirst(3);
        System.out.println(ml.size());
        System.out.println(ml.contains(2));
        ml.display();
        System.out.println("=========");
        ml.addLast(4);
        ml.addLast(5);
        ml.addLast(6);
        ml.display();
        System.out.println("==========");
        ml.addIndex(0,100);
        ml.addIndex(4,100);
        ml.addIndex(8,100);
        ml.display();
        System.out.println("=========");
        ml.removeAllKey(100);
        ml.display();
    }
}
